﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="CommandDefinition.ascx.cs"
    Inherits="Portal.Administrator.Commands.CommandDefinition" %>
<%@ Register Assembly="Framework.WebControl" Namespace="Framework.WebControls" TagPrefix="cc1" %>

<link href="/Administrator/Styles/treeStyle.css" rel="stylesheet" type="text/css" />
<asp:UpdatePanel ID="uppanelCommandDefinitionUpdate" runat="server" UpdateMode="Conditional"
    RenderMode="Inline">
   
    <ContentTemplate>        
        <table border="0" cellpadding="0" cellspacing="1" class="content" width="100%">
            <tr>
                <td class="postheader" width="30%" align="left" valign="top">
                    <table border="0" cellpadding="0" cellspacing="1" class="content" style="width: 100%">
                        <tr>
                            <td class="post" align="left">
                                <asp:TreeView ID="tvwCmds" runat="server"  ExpandImageUrl="/Administrator/Resource/Images/TreeView/col.gif" CollapseImageUrl="/Administrator/Resource/Images/TreeView/exp.gif" NodeStyle-CssClass="TreeNode" NodeIndent="15" NoExpandImageUrl="/Administrator/Resource/Images/TreeView/noexp.gif"
                                HoverNodeStyle-CssClass="HoverTreeNode" SelectedNodeStyle-CssClass="SelectedTreeNode" OnSelectedNodeChanged="tvwCmds_SelectedNodeChanged" >                   
                                </asp:TreeView> 
                            </td>
                        </tr>
                    </table>                   
                </td>                
                <td class="post" width="70%" align="left" valign="top">
                    <table align="center" width="100%" cellspacing="1" cellpadding="0" border="0" class="content">
                        <tr>
                            <td class="header1" colspan="2" align="left">
                                <asp:Label ID="lblCommandName" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="header2" height="18">
                                <asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="True" ForeColor="Blue"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="postheader" width="25%" align="left">
                                <strong>
                                    <asp:Label ID="lblID" runat="server" Text="ID"></asp:Label></strong></td>
                            <td class="post" width="75%" align="left">
                                <asp:TextBox ID="txtID" runat="server" Enabled="False" Width="49px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td class="postheader" width="25%" align="left">
                                <asp:Label ID="lblName" runat="server" Text="Name"></asp:Label>
                            </td>
                            <td class="post" width="75%" align="left">
                                <asp:TextBox runat="server" ID="txtName"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtName" Display="Dynamic" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="postheader" width="25%" align="left">
                                <strong>
                                    <asp:Label ID="lblCommands" runat="server" Text="Lệnh"></asp:Label></strong></td>
                            <td class="post" width="75%" align="left">
                                <asp:DropDownList ID="dropCommandKeys" runat="server" DataTextField="ControlPath" DataValueField="ControlKey" Width="253px">
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td class="postheader" width="25%" align="left">
                                <strong>
                                    <asp:Label ID="lblParam" runat="server" Text="Tham số"></asp:Label></strong></td>
                            <td class="post" width="75%" align="left">
                                <asp:TextBox ID="txtParams" runat="server" Width="224px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="postheader" width="25%" align="left">
                                <strong>
                                    <asp:Label ID="lblLinkUrl" runat="server" Text="Link Url"></asp:Label></strong></td>
                            <td class="post" width="75%" align="left">
                                <asp:TextBox ID="txtUrl" runat="server" Width="224px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="postheader" width="25%" align="left">
                                <strong>
                                    <asp:Label ID="lblParent" runat="server" Text="Cha"></asp:Label></strong></td>
                            <td class="post" width="75%" align="left">
                                <asp:DropDownList ID="dropParent" runat="server" Width="254px">
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td class="postheader" width="25%" align="left">
                                <strong>
                                    <asp:Label ID="lblOrder" runat="server" Text="Thứ tự"></asp:Label></strong></td>
                            <td class="post" width="75%" align="left">
                                <asp:DropDownList ID="dropIndex" runat="server" Width="88px">
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td class="postheader" width="25%" align="left">
                                <strong>
                                    <asp:Label ID="lblActive" runat="server" Text="Hoạt động"></asp:Label></strong></td>
                            <td class="post" width="75%" align="left">
                                <asp:CheckBox ID="chkEnable" runat="server" Checked="True" CssClass="input" /></td>
                        </tr>
                        <tr>
                            <td class="postheader" width="25%" align="left">
                                <strong>
                                    <asp:Label ID="lblVisible" runat="server" Text="Hiện thị"></asp:Label></strong></td>
                            <td class="post" width="75%" align="left">
                                <asp:CheckBox ID="chkVisble" runat="server" Checked="True" CssClass="input" /></td>
                        </tr>                        
                        <tr>
                            <td class="postheader" width="25%" align="left">
                                <strong>
                                    <asp:Label ID="lblIsSuperUser" runat="server" Text="Is Super User"></asp:Label></strong></td>
                            <td class="post" width="75%" align="left">
                                <asp:CheckBox ID="chkIsSuperUser" runat="server" Checked="True" CssClass="input" /></td>
                        </tr>
                        <tr>
                            <td class="postfooter" colspan="2" valign="middle" align="center">
                            
                                <Button:Update ID="cmdUpdate" runat="server" CssClass="pbutton" OnClick="cmdUpdate_Click" Text="Cập nhật" Width="77px" />
                                <Button:Create ID="cmdAddNew" runat="server" CssClass="pbutton" OnClick="cmdAddNew_Click" Text="Thêm mới" Width="77px" />
                                <Button:Delete ID="cmdDelete" runat="server" CssClass="pbutton" OnClick="cmdDelete_Click" Text="Xóa" Width="77px" />
                                <asp:Button ID="cmdEmpty" runat="server" CssClass="pbutton" CausesValidation="False" OnClick="cmdEmpty_Click" Text="Hủy" Width="77px" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
